package com.shuwen.gcdj.job;

import com.shuwen.gcdj.common.api.CommonResult;
import com.shuwen.gcdj.service.message.MessageCenterService;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author :yangx
 * 同步plc实时数据到mysql
 * @date : 2023/6/29
 */
@Component
@Slf4j
public class PlcAlarmJob {
    @Autowired
    private MessageCenterService messageCenterService;

    @XxlJob("addPlcAlarmJob")
    public CommonResult<Integer> addPlcAlarmJob() {
        return messageCenterService.addPlcAlarmJob();
    }
}
